package br.com.advocacia.logica.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.advocacia.dao.unitario.contract.ProcessoDaoContract;
import br.com.advocacia.entidade.Processo;
import br.com.advocacia.logica.contract.ProcessoLogicaContract;

@Service("processoLogica")
public class ProcessoLogica extends DefaultLogica<Processo> implements ProcessoLogicaContract {
	
	private static final long serialVersionUID = 1L;

	@Autowired
	private ProcessoDaoContract processoDao;

	@Override
	public Integer obterProximoProcesso() {
		return processoDao.obterProximoProcesso();
	}
	
	@Override
	public List<Processo> buscarTodosProcessos() {
		return processoDao.buscarTodosProcessos();
	}

}